export const isSameElement = (origin: Node | null, target: Node | null) => {
    while(1) {
        if (origin === null || target === null) return false
        if (origin === target) return true
        target = target.parentElement
    }
}